package tester;

/**
 * Created by IntelliJ IDEA.
 * User: aleck
 * Date: 2007-10-23
 * Time: 0:45:00
 * To change this template use File | Settings | File Templates.
 */
public class SingleProblemTesterThread extends BaseTesterThread {
  private final PersonManager persons;
  private final Problem problem;

  public SingleProblemTesterThread(Problem problem, PersonManager persons) {
    this.problem = problem;
    this.persons = persons;
  }

  public void run() {
    for (Person person : persons.personList) {
      if (person.finished(problem.name)) {
        PersonProblemTester spt =
            new PersonProblemTester(person, problem, Config.getWorkDir());
        spt.runTest();
      }
    }
  }
}
